package com.example.everying.service.system;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.everying.model.dto.system.SysNotificationDto;
import com.example.everying.model.entity.system.SysNotification;
import com.example.everying.model.vo.SysNotificationVo;

import java.util.List;

public interface SysNotificationService extends IService<SysNotification> {
    List<SysNotification> listByTypeAndStatus(Byte type, Byte status);

    boolean saveNotification(SysNotification notification);

    boolean updateNotificationById(SysNotification notification);

    boolean deleteNotificationById(Long id);
    boolean deleteNotificationBatch();

    IPage<SysNotification> selectPage(Page<SysNotification> pageParam, SysNotificationDto dto);
}